﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;
using DTO;

namespace BLL
{
    public class DONVITINHBUS
    {
        public static DataTable GetListDVT()
        {
            DONVITINHDAO b = new DONVITINHDAO();
            return b.GetListDONVITINH();
        }
		public static List<DONVITINH> GetListDVTs()
		{
			DONVITINHDAO b = new DONVITINHDAO();
			return b.GetListDONVITINHs();
		}
        public static String CreateNewID()
        {
            DONVITINHDAO b = new DONVITINHDAO();
            return b.CreatenewId();
        }
        public static bool INSERT(DONVITINH bc)
        {
            DONVITINHDAO b = new DONVITINHDAO();
            return b.INSERT(bc);
        }
        public static bool UPDATE(DONVITINH bc)
        {
            DONVITINHDAO b = new DONVITINHDAO();
            return b.UPDATE(bc);
        }
        public static bool DELETE(DONVITINH bc)
        {
            DONVITINHDAO b = new DONVITINHDAO();
            return b.DELETE(bc);
        }
    }
}
